﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using mamnontuoitho7.AppCode;
using System.Data;

namespace mamnontuoitho7.module
{
    public partial class TeacherKidList : System.Web.UI.Page
    {
        protected DataTable _dttKid;
        protected Kid _kid = new Kid();

        protected void Page_Load(object sender, EventArgs e)
        {

            //Check Permission
            if (Session["memberID"].ToString() != "" && Session["role"].ToString() == "3")
            {
                try
                {
                    _dttKid = _kid.GetTeacherKidList(Session["memberID"].ToString());
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.Message);
                    Response.Redirect(ConstantClass._errorLoginPage);
                }
            }
            else
            {
                Response.Redirect(ConstantClass._errorLoginPage);
            }

            Session["Common_articleTypeID"] = "1";

        }
    }
}